package prototypeModel;

public class Clint {

    public static int MAX_SEND=6;

    public static void main(String[] args) {
        Maile maile=new Maile(new AdvTemple());
        int i=0;
        while (i<MAX_SEND){
            Maile sendMaile=maile.clone();
            sendMaile.setReceiver(i+"@163.com");
            send(sendMaile);
            i++;
        }
    }

    public static void send(Maile maile){
        System.out.println(maile.getReceiver()+"已发送");
    }
}
